package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
    * 群控记录详情表
    */
@Data
@TableName(value = "ems_control_record_detail")
public class EmsControlRecordDetail {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 主表id
     */
    @TableField(value = "record_id")
    private Long recordId;

    /**
     * 步骤序号
     */
    @TableField(value = "step_num")
    private Integer stepNum;

    /**
     * ems设备编码
     */
    @TableField(value = "device_code")
    private String deviceCode;

    /**
     * 设备编码
     */
    @TableField(value = "init_device_code")
    private String initDeviceCode;

    /**
     * 见枚举ditType,只能是遥控/遥调
     */
    @TableField(value = "dit_type")
    private Integer ditType;

    /**
     * 点号
     */
    @TableField(value = "dit")
    private String dit;

    /**
     * 下发值
     */
    @TableField(value = "val")
    private String val;

    /**
     * iot_edge_platform_sync_msg表id
     */
    @TableField(value = "msg_id")
    private Integer msgId;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 客户端请求ip
     */
    @TableField(value = "client_ip")
    private String clientIp;

    /**
     * 开始时间
     */
    @TableField(value = "begin_time")
    private Long beginTime;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Long gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modify")
    private Long gmtModify;
}